- unless @videos.empty?
  %h2
    = "Found #{pluralize(@videos.length, 'video')} matching the term"
    %span.search_term= "\"#{params[:term]}\""
  %div.video_results
    - @videos.each do |video|
      - if video.is_private?
        - if logged_in? && current_user.authorized_to_view?(video)
          %table.index_video
            %tr
              %td.video_preview
                %a{:href => video_url(video), :title => video.description}
                  %img.photo_thumb{:src => video.thumbnail, :title => video.description}
      - else
        %table.index_video
          %tr
            %td.video_preview
              %a{:href => video_url(video), :title => video.description}
                %img.photo_thumb{:src => video.thumbnail, :title => video.description}